package com.kumi.blog.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kumi.common.utils.PageUtils;
import com.kumi.common.utils.Query;

import com.kumi.blog.user.mapper.AnswerMapper;
import com.kumi.blog.user.bean.Answer;
import com.kumi.blog.user.service.AnswerService;


@Service("answerService")
public class AnswerServiceImpl extends ServiceImpl<AnswerMapper, Answer> implements AnswerService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<Answer> page = this.page(
                new Query<Answer>().getPage(params),
                new QueryWrapper<Answer>()
        );

        return new PageUtils(page);
    }

}